﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CodeMatrix.Data.Entities
{

    public class AnswerObject
    {
        public int QuestionId { get; set; }
        public string SelectedChoice { get; set; }
    }

    public class ResultObject
    {
        public int QuestionId { get; set; }
        public int Choice { get; set; }
        public bool IsConflict { get; set; }
        public bool IsValid { get; set; }
    }

    public class ExamSubmitObject
    {
        public int TestingId { get; set; }
        public bool CalculateScore { get; set; }
        public AnswerObject[] Answers { get; set; }
    }

    public class ExamObject
    {
        public int TestingId { get; set; }
        public string Title { get; set; }
        public int Time { get; set; }
        public int ExamType { get; set; }
        public string SubjectName { get; set; }
        public string TestingName { get; set; }
        public string SubjectCategoryName { get; set; }
        public string Description { get; set; }
        public List<QuestionObject> Questions { get; set; }
        public int Total { get; set; }

        public ExamObject()
        {
            Questions = new List<QuestionObject>();
        }

    }

    public class QuestionObject
    {
        public int QuestionId { get; set; }
        public string Description { get; set; }
        public List<Choice> Choices { get; set; }
        public string Answer { get; set; }

        public QuestionObject()
        {
            Choices = new List<Choice>();
        }

    }

    public class Choice
    {
        public int QuestionId { get; set; }
        public string Detail { get; set; }
        public bool IsCorrect { get; set; }
        public bool IsSelected { get; set; }
        public string Label { get; set; }
    }


}
